package cn.uce.cc.srv.service;

import cn.uce.base.entity.CcSmsRecord;
import cn.uce.base.vo.CcSmsRecordVo;
import cn.uce.cc.srv.dao.impl.ICcSmsRecordDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CcSmsMessageService {


    @Resource
    private ICcSmsRecordDao  ccSmsRecordDao;


    public void addCsSmsRecordxReturnId(CcSmsRecord ccSmsRecord) {
        ccSmsRecordDao.addCsSmsRecordxReturnId(ccSmsRecord);
    }

    /**
     * 根据id更新短信消息记录
     * @param ccSmsRecord
     */
    public void updateById(CcSmsRecord ccSmsRecord) {
        ccSmsRecordDao.updateById(ccSmsRecord);
    }

    public CcSmsRecord findBillCodeAndPhoneNum(CcSmsRecordVo queryVo) {
           return ccSmsRecordDao.findBillCodeAndPhoneNum(queryVo);
    }
}
